<?php
class support_group{
	private $id;
	private $title;
	private $phone;
	private $order;
	// set get id
	public function setid($id) {
		$this->id = $id;
	}
	public function getid() {
		return $this->id;
	}
	// set get title
	public function settitle($title) {
		$this->title = $title;
	}
	public function gettitle() {
		return $this->title;
	}
	// set get title
	public function setphone($phone) {
		$this->phone = $phone;
	}
	public function getphone() {
		return $this->phone;
	}
	// set get title
	public function setorder($order) {
		$this->order = $order;
	}
	public function getorder() {
		return $this->order;
	}
	// List all product
	public function listall() {
		GLOBAL $db;
		$sql = "SELECT * FROM " . $db->tbl_fix . "support_group order by `order`";
		$result = $db->executeQuery ( $sql );
		while ( $rows = mysql_fetch_array ( $result ) ) {
			$return [] = $rows;
		}
		return $return;
	}
}
$support_group = new support_group();
?>